package com.lucifer.starter.controller;


import com.lucifer.repo.PingRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by tangdaoyuan on 2017/1/9.
 */
@RestController
public class SampleController {
    @Autowired
    private PingRepo pingRepo;

    @RequestMapping("/test")
    @ResponseBody
    public Long test() {
        return pingRepo.ping();
    }
}
